import request from '@/utils/request'

// 部门列表
export function deptList() {
  return request({
    url: '/dept/enable/list',
    method: 'GET'
  })
}
// 部门成本分页列表
export function deptCostPage(queryParam) {
  return request({
    url: `/dept/cost/page`,
    method: 'POST',
    data: queryParam
  })
}
// 部门列表
export function deleteDeptCost(deptId) {
  return request({
    url: '/dept/cost/' + deptId,
    method: 'DELETE'
  })
}
// 部门列表
export function addDeptCost(deptId, cost) {
  return request({
    url: `/dept/cost/${deptId}/${cost}`,
    method: 'POST'
  })
}
